wayland: use memfd_create instead of open in tmpdir
authorRay Strode <rstrode@redhat.com>
Mon, 25 Jan 2016 16:41:23 +0000 (11:41 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 25 Jan 2016 18:36:23 +0000 (13:36 -0500)
commitdf70e28d92e7c1d95f25120bdf059c07c211f083
tree8519afbce8740e92a678fd3d7aee2ee228029e2d
parent7097a4ed64197029a09c84dccb2e0925bed91e5c
wayland: use memfd_create instead of open in tmpdir

The tmpdir is used for a wide assortment of things, and
can easily fill up. If it fills then desktop will start
crashing with SIGBUS errors.

This commit changes the shm pool allocation code, to use
memfd_create, instead, so the shared memory files will
be anonymous and not associated with /tmp

https://bugzilla.gnome.org/show_bug.cgi?id=761095
gdk/wayland/gdkdisplay-wayland.c